package practice1.string;

public class Index {
    public static void main(String[] args) {
        String str = "boy next door";

        int a = str.indexOf("e");
        System.out.println(a);


        int b = str.lastIndexOf("t");
        System.out.println(b);


    }
}
